<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">存储前缀</label>
            <div class="layui-input-block">
                <input type="text" name="prefix_path" class="layui-input" lay-verify="required" placeholder="请输入存储前缀" value="uldisk/chunks">
                <tip>无论是否以/开头，都会在开头拼接/，最终与实际存储类型的路径拼接。</tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">存储空间限制</label>
            <div class="layui-input-block">
                <input type="text" name="size_limit" class="layui-input" lay-verify="required" placeholder="请输入存储空间限制" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">权重</label>
            <div class="layui-input-block">
                <input type="text" name="weight" class="layui-input" lay-verify="required" placeholder="请输入权重" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">存储区域</label>
            <div class="layui-input-block">
                <select name="group_id" lay-verify="required" data-select="{:url('storage.position_group/index')}" data-fields="id,title">

                </select>
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label required">类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" lay-filter="config-type">
                    <option value=''></option>
                    {foreach $select_list_type as $k=>$v}
                    <option value='{$k}'>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        {include file='storage/position/form_item/index'/}
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>